<?
/**
Utilizando o php 5.3, converte qi/info gerando o arquivo info.phar.php
*/

$dir = dirname(dirname(dirname(__FILE__)))."/info";
$qidir = dirname($dir);
$f = dirname(__FILE__)."/info.phar.php";
@unlink($f);
$phar = new Phar($f);
$phar->buildFromDirectory($dir, "/\.(php|js|css|jpg|png)$/");
$phar["util.php"] = file_get_contents("$qidir/util.php");
$phar["array.php"] = file_get_contents("$qidir/array.php");
$phar["xml/builder.php"] = file_get_contents("$qidir/xml/builder.php");
unset($phar["save_default_ini.bat"]);
unset($phar["save_default_ini.php"]);
unset($phar[".svn"]);
$phar->setStub(file_get_contents("stub.php"));

$phar->compressFiles( Phar::GZ );

?>